home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
util
/
sys
/
ReqCh.lha
/
ReqCh
/
ReqCh.doc
< prev
next >
Wrap
Text File
|
1997-07-31
|
2KB
|
57 lines
****************************************************************************
REQUESTCHOICE a replacement written by: Joerg Riemer [31-jul-97]
------------- Schottmüllerstr.107
14167 Berlin Germany
EMail: mission@cs.tu-berlin.de
****************************************************************************
dear user
this command is a replacement for c:requestchoice, to be found in your
directory since the os changes to V39. there are a couple of bugs in
it which makes it unuseable. copy the new command over your old version
and create some proper batchscript which use it to find out how great
it can work.
----------------------------------------------------------------------------
to get a different to the original command the internal
name was changed to [ReqCh] and the version was updated from 39.4 to 40.2
- because it needed 8'th sources to got a bug free version of ReqCh -
----------------------------------------------------------------------------
BUGS in the original requestchoice and why it won't work:
requestchoice uses the dos function (setioerr) to set the selected gadget
number as the result2 variable, but it never returns. the reason for this
is, the result2 variable depends on the returncode a program leaves in D0.
a successful exit with a cleared returnregister signals the shell_process
to clear the result2 variable also. that's why you never get a result2 value.
[it can be a bug or not. in that state it's a point of view]
in my opinion it's right to clear this variable also. because the result2
variable is further to explain an improved error information and not for
handling own used variable values.
to fix this, the new (requestchoice) will return the number of the
selected gadget in a new local variable called "ReqChGG"
the result2 value will only be set if the program fails for other reasons.
----------------------------------------------------------------------
for example: look at the demo.script how to get the selected gadget id.
----------------------------------------------------------------------
other hidden bugs i removed:
it allocs memory about exec(allovec) - but don't frees them at the end
the same occures for dos(readargs) - don't removed on exit
i hope so there is nothing more
joerg...